//
//  AppTool.h
//  TextToImg
//
//  Created by Garenge on 2019/M/29.
//  Copyright © 2019 鹏鹏. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Singleton.h"
#import "SplitModeViewController.h"

NS_ASSUME_NONNULL_BEGIN

@interface AppTool : NSObject

singleton_interface(AppTool)

- (SplitMode)getSpliteMode;
- (BOOL)saveSplitMode:(SplitMode)splitMode;
- (BOOL)clearSplitMode;

- (NSInteger)getSpliteTextCount;
- (BOOL)saveSplitTextCount:(NSInteger)count;

- (NSString *)getSplitString;
- (BOOL)saveSplitString:(NSString *)string;

- (BOOL)getCustomSplite;
- (BOOL)saveCustomSplite:(BOOL)custom;

+ (void)prepareData;

/// 全局字体
UIFont *APPUsualFontWithSize(CGFloat size);
UIFont *APPUsualFontWithNameAndSize(NSString *fontName, CGFloat size);

@end

NS_ASSUME_NONNULL_END
